package com.hzb.myvpn.model;

import java.io.IOException;

public interface ITunDev {
    public interface ITunDevFactory {
        public ITunDev createTunDev(ConnInfo connInfo) throws IOException;
    }
   
    public abstract short read(byte[] buffer, int timeout) throws IOException;

    public abstract void write(byte[] buffer, int size) throws IOException;

    public abstract void close() throws IOException;

}